<?php if(!defined('ROOT_PATH')) exit('Access Denied');?><div class="box box-middle">
  <div class="box-title">
    <h3>基本设置</h3>
    <span></span> </div>
  <div class="box-content">
    <form action="/admin.php/Admin_System" method="post" name="basic_settings" id="basic-settings">
      <ul id="add-post-option">
        <li>
          <label for="basic-settings-domain" class="add-post-label">网站域名：</label>
          <input id="basic-settings-domain" name="weburl" type="text" value="<?php echo $data['weburl'];?>" class="add-post-text" autocomplete="off">
        </li>
        <li>
          <label for="basic-settings-name" class="add-post-label">站点名称：</label>
  <input type="text" id="basic-settings-name" name="webname" value="<?php echo $data['webname'];?>" class="add-post-text" />
        </li>
        <li>
          <label for="basic-settings-webmaster" class="add-post-label">站长：</label>
  <input type="text" id="basic-settings-webmaster" name="webmaster" value="<?php echo $data['webmaster'];?>" class="add-post-text" />
        </li>
        <li>
          <label for="basic-settings-email" class="add-post-label">邮箱：</label>
  <input type="text" id="basic-settings-email" name="email" value="<?php echo $data['email'];?>" class="add-post-text" />
        </li>
        <li>
          <label  class="add-post-label">关键字：</label>
          <textarea  class="add-post-textarea" name="keywords"  ><?php echo $data['keywords'];?></textarea>
        </li>
        <li>
          <label  class="add-post-label">描述：</label>
          <textarea class="add-post-textarea" name="description"  ><?php echo $data['description'];?></textarea>
        </li>
        <li>
          <label for="basic-settings-name" class="add-post-label">ICP备案：</label>
  <input type="text" id="basic-settings-name" name="icp" value="<?php echo $data['icp'];?>" class="add-post-text" />
        </li>
        <li>
          <label for="basic-settings-name" class="add-post-label">系统版本：</label>
  <input type="text" id="basic-settings-name" name="version" value="<?php echo $data['version'];?>" class="add-post-text" />
        </li>
        <li>
          <label class="add-post-label"></label>
          <input type="submit" name="submit" id="basic-settings-submit" value="保存设置" />
        </li>
      </ul>
    </form>
    <script>
$('#basic-settings').ajaxForm({
beforeSubmit: function(){
$("#basic-settings-submit").attr('disabled',true);
},
success: function(data){	
if(data=='ok!') {
showMessage('保存成功！','tips');
ajaxLoad('/admin.php/Admin_System');
} else {
showMessage('保存失败！','error');
}
$("#basic-settings-submit").attr('disabled',false);
}});

</script> 
  </div>
</div>
